<?php
    class My_Controller_Helper_Acl
    {
        protected $_acl;
        public function __construct()
        {
            $this->_acl = new Zend_Acl();            
        }
        public function setRoles()
        {
            $this->_acl->addRole(new Zend_Acl_Role('guest'));            
            $this->_acl->addRole(new Zend_Acl_Role('admin'));
        
            $this->_acl->add(new Zend_Acl_Resource('index'));        
            $this->_acl->add(new Zend_Acl_Resource('group'));
        }
        public function setPrivilages()
        {            
            $this->_acl->allow('guest','index');
            $this->_acl->allow('admin');
        }
        public function setAcl()
        {
            Zend_Registry::set('acl',$this->_acl);
        }
    }
?>